import request from '@/utils/request'

// 查询户型图列表
export function getData(params) {
  return request({
    url: '/house/huxingtu/getData',
    method: 'get',
    params
  })
}
// 新增户型图
export function addHuxingtu(data) {
  return request({
    url: '/house/huxingtu/add',
    method: 'post',
    data
  })
}
// 修改户型图
export function updateHuxingtu(data) {
  return request({
    url: '/house/huxingtu/edit',
    method: 'post',
    data
  })
}

// 删除户型图
export function delHuxingtu(id) {
  return request({
    url: '/house/huxingtu/delete/' + id,
    method: 'post'
  })
}
// 根据户型图id查询详细信息
export function getHuxingtuDetail(id) {
  return request({
    url: '/house/huxingtu/detail/' + id,
    method: 'get'
  })
}
